home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / Adobe AIR / Versions / 1.0 / Adobe AIR Application Installer.swf / scripts / _SecurityInfoWatcherSetupUtil.as < prev    next >
Text File  |  2008-10-29  |  2KB  |  45 lines

  1. package
  2. {
  3.    import flash.display.Sprite;
  4.    import mx.binding.FunctionReturnWatcher;
  5.    import mx.binding.IWatcherSetupUtil;
  6.    import mx.binding.PropertyWatcher;
  7.    import mx.core.IFlexModuleFactory;
  8.    
  9.    public class _SecurityInfoWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  10.    {
  11.        
  12.       
  13.       public function _SecurityInfoWatcherSetupUtil()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function init(param1:IFlexModuleFactory) : void
  19.       {
  20.          SecurityInfo.watcherSetupUtil = new _SecurityInfoWatcherSetupUtil();
  21.       }
  22.       
  23.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  24.       {
  25.          var target:Object = param1;
  26.          var propertyGetter:Function = param2;
  27.          var bindings:Array = param3;
  28.          var watchers:Array = param4;
  29.          watchers[4] = new PropertyWatcher("greenCircleIcon",{"propertyChange":true},[bindings[2]],propertyGetter);
  30.          watchers[2] = new PropertyWatcher("moreOptionsButton",{"propertyChange":true},[bindings[1]],propertyGetter);
  31.          watchers[5] = new PropertyWatcher("redCircleIcon",{"propertyChange":true},[bindings[2],bindings[6]],propertyGetter);
  32.          watchers[0] = new FunctionReturnWatcher("getInstance",target,function():Array
  33.          {
  34.             return [];
  35.          },null,[bindings[0]],null);
  36.          watchers[3] = new PropertyWatcher("identityVerified",{"propertyChange":true},[bindings[2],bindings[4],bindings[3],bindings[5]],propertyGetter);
  37.          watchers[4].updateParent(target);
  38.          watchers[2].updateParent(target);
  39.          watchers[5].updateParent(target);
  40.          watchers[0].updateParent(LocalizationManager);
  41.          watchers[3].updateParent(target);
  42.       }
  43.    }
  44. }
  45.